<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>菜鸟教程(runoob.com)</title>
<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js">
</script>
<script>
$(document).ready(function(){
	$("button").click(function(){
		$.ajax({
            url:"localhost:3000/message",
            error:function(result){
                 $("#div1").html("|adafdafafdasdfas");
            },
            success:function(result){
                 const res = result;
			     $("#div1").html(res);
            }
        });
	});
});
</script>
</head>
<body>

<div id="div1"></div>
<button>获取其他内容</button>

</body>
</html>